package cn.lyvust.level;

/**
 * Description:Java四种访问修饰符
 * date: 2021-4-6 22:41
 *
 * @author Guo_guo
 * @since JDK 1.8
 */
public class Permission {
    private int privateValue = 1;
    public int publicValue = 1;
    protected int protectedValue = 1;
    int defaultValue = 1;

    void defaultFunc(){
        System.out.println("This is a default function");
    }

    public void publicFunc(){
        System.out.println("This is a public function");
    }

    protected void protectedFunc() {
        System.out.println("This is a protected function");
    }

    private void privateFunc(){
        System.out.println("This is a private function");
    }
}
